<?php
$this->widget('application.vendor.efineuploader.EFineUploader', array(
    'id'  => 'FineUploader',
    'css' => Yii::app()->getBaseUrl(true) . '/css/fineuploader.fixes.css',
    'config' => array(
        'multiple'   => true,
        'autoUpload' => true,
/*        'deleteFile' => array(
            'enabled' => true,
        ),*/
        'request'    => array(
            'endpoint' => '/uploaders/efineuploader/upload/start/',// OR $this->createUrl('files/upload'),
            'params'   => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken),
        ),
        'retry'     => array('enableAuto' => true, 'preventRetryResponseProperty' => true),
        'chunking'  => array('enable' => true),//bytes
        'callbacks' => array(
            'onComplete' => "js:function(id, name, response){  }",
            'onError'    => "js:function(id, name, errorReason){ }",
        ),
        'validation' => array(
            'allowedExtensions' => Yii::app()->params->efineuploaderAllowedExtensions,
            'sizeLimit'         => Yii::app()->params->efineuploaderSizeLimit * 1024 * 1024,//maximum file size in bytes
            // 'minSizeLimit'      => 2 * 1024 * 1024,// minimum file size in bytes
        ),
    )
));

?>
